﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SWDataDB.Models;
using SWDataDB.DAL;

namespace SWDataDB.BLL
{
    class QDInfoDelete
    {
        public QDInfoDelete(){}

        /// <summary>
        /// 根据删除著录表
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int ZLInfoDelete(int id)
        {
            ZLInfo info = new ZLInfo();

            return info.DeleteZLInfoByID(id);
        }

        public int PMInfoDelete(int id)
        {
            PMInfo info = new PMInfo();

            return info.DeletePMInfoById(id);
        }

        /// <summary>
        /// 实体信息录入
        public int UTILInfoDelete(int id)
        {
            UTILInfo info = new UTILInfo();

            return info.DeleteUtilInfoById(id);
            /*            return 1;*/
        }

        public int XGDataDelete(int id)
        {
            XGInfo info = new XGInfo();

            return info.DeleteXGInfoById(id);
        }

        public int BBInfoDelete(int id)
        {
            BBInfo info = new BBInfo();

            return info.DeletebbInfoById(id);
        }

        public int BPInfoDelete(int id)
        {
            BPInfo info = new BPInfo();

            return info.DeletebpInfoById(id);
        }

        public int GPInfoDelete(int id)
        {
            GPInfo info = new GPInfo();

            return info.DeleteGPInfoById(id);
        }

        public int YPInfoDelete(int id)
        {
            YPInfo info = new YPInfo();

            return info.DeleteYPInfoById(id);
        }
    }
}
